package com.qindian.coupontest;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;

/**
 * Author: Li
 * Date: 2018/5/21 0021
 * Description: 搜索结果
 */

public class SearchGoodsResultActivity extends BaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search_goods_result);
        Bundle bundle=getIntent().getExtras();
        if (bundle == null) {
            return;
        }
        FragmentTransaction fragmentTransaction=getSupportFragmentManager().beginTransaction();
        fragmentTransaction.add(R.id.layout_content,GoodsListFragment.newInstance(
                true,bundle.getString("platform"),bundle.getString("type"),
                bundle.getString("detail"),null,bundle.getString("keyword")));
        fragmentTransaction.commit();
    }
}
